<form class="form-horizontal register-form" role="form">
    {% csrf_token %}
    <div class="form-group">
        <label class="col-sm-3 control-label no-padding-right" for="proc-name">名称</label>
        <div class="col-sm-9">
            <input type="text" id="proc-name" placeholder="" class="col-xs-10 col-sm-10" value="<%= name %>">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label no-padding-right" for="proc-path">路径</label>
        <div class="col-sm-9">
            <input type="text" id="proc-path" placeholder="" class="col-xs-10 col-sm-10" value="<%= path %>">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label no-padding-right" for="proc-startcmd">启动命令</label>
        <div class="col-sm-9">
            <input type="text" id="proc-startcmd" placeholder="" class="col-xs-10 col-sm-10" value="<%= startCmd %>" />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label no-padding-right" for="proc-ports">端口</label>
        <div class="col-sm-9">
            <input data-rel="tooltip" type="text" id="proc-ports" placeholder="" class="col-xs-10 col-sm-10" title="多个端口请用逗号','分隔" data-placement="bottom" value="<%= ports %>" />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label no-padding-right" for="proc-psstr">ps关键字</label>
        <div class="col-sm-9">
            <input type="text" id="proc-psstr" placeholder="" class="col-xs-10 col-sm-10" value="<%= psStr %>" />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label no-padding-right" for="proc-remark">备注</label>
        <div class="col-sm-9">
            <textarea id="proc-remark" class="autosize-transition col-xs-10 col-sm-10" style="overflow: hidden; word-wrap: break-word; resize: horizontal; height: 52px;"><%= remark %></textarea>
        </div>
    </div>
    <div class="form-group proc-autorestart-container">
        <label class="col-sm-3 control-label no-padding-right" for="proc-autorestart">自动重启</label>                                
        <div class="col-sm-9">
            <input name="switch-field-1" id="proc-autorestart" class="ace ace-switch ace-switch-4 btn-flat" type="checkbox" <% if(autoRestart) %> <%= checked="checked" %> />
            <span class="lbl"></span>
        </div>
    </div>
    <div class="clearfix form-actions">
        <div class="col-md-offset-3 col-md-9">
            <button class="btn btn-info btn-confirm" type="button">
                <i class="ace-icon fa fa-check bigger-110"></i>
                确定
            </button>
            &nbsp; &nbsp; &nbsp;
            <button class="btn btn-reset" type="reset">
                <i class="ace-icon fa fa-undo bigger-110"></i>
                清空
            </button>
        </div>
    </div>
</form>
